//
//  CryptoHelper.h
//  GLUZ
//
//  Created by GS on 2025/2/18.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface CryptoHelper : NSObject
+ (NSString *)md5Hash:(NSString *)input;
+ (NSString *)hmacSHA1:(NSString *)data key:(NSString *)key;
+ (NSString *)getRFC1123Date;
+ (NSString *)hmacSHA256:(NSString *)data withKey:(NSString *)key;
/// 将字符串进行 Base64 编码
+ (NSString *)base64Encode:(NSString *)input;
/// Base64 解码
+ (NSString *)base64Decode:(NSString *)base64String;

+ (NSString *)md5String:(NSData *)data;
@end

NS_ASSUME_NONNULL_END
